package com.pn.taikao.service;

import com.pn.taikao.entity.StudentCourse;
import com.pn.taikao.entity.User;

import java.util.List;

public interface StudentCourseService {
    Long selectCourse(Long studentId, Long courseId);

    void unselectCourse(Long studentId, Long courseId);

    boolean isSelected(Long studentId, Long courseId);

    List<StudentCourse> getByStudentId(Long studentId);

    List<StudentCourse> getByCourseId(Long courseId);

    long countByStudentId(Long studentId);

    long countByCourseId(Long courseId);
    
    /**
     * 获取选择某课程的学生列表
     */
    List<User> getStudentsByCourseId(Long courseId);
}

